package com.jedis;

import redis.clients.jedis.Jedis;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ling
 * Date: 2023-01-02
 * Time: 10:58
 */
public class JedisDemo1 {
    public static void main(String[] args) {
        //创建Jedis对象
        Jedis jedis = new Jedis("43.139.58.117",6379);
        jedis.auth("110412");
        //测试
        String value = jedis.ping();
        System.out.println(value);
        jedis.close();
    }

}
